package tests;
import java.util.ArrayList;
import java.util.List;

import system.SystemFacade;
import easyaccept.EasyAcceptFacade;

/**
 * 
 * Test class. This class executes all the necessary tests calling a EasyAccept
 * instance.
 * 
 * @author Alexandre, Cristovao, Raul, Rodolpho e Tales
 * @version 1.0
 * 
 */
public class Tests {

	public static void main(String[] args) {
		List<String> files = new ArrayList<String>();
		files.add("testes_aceitacao\\us1.txt");
		files.add("testes_aceitacao\\us2.txt");
		files.add("testes_aceitacao\\us3.txt");
		files.add("testes_aceitacao\\us4.txt");
		files.add("testes_aceitacao\\us5.txt");
		files.add("testes_aceitacao\\us6.txt");
		files.add("testes_aceitacao\\us7_1.txt");
		files.add("testes_aceitacao\\us7_2.txt");
		files.add("testes_aceitacao\\us7_3.txt");

		// Facade class instance to mediate the test
		SystemFacade testUS = SystemFacade.getInstance();

		EasyAcceptFacade eaFacade = new EasyAcceptFacade(testUS, files);
		eaFacade.executeTests();

		// Show results in the console
		System.out.println(eaFacade.getCompleteResults());
		System.out.println("Total Number of Tests: "
				+ eaFacade.getTotalNumberOfTests());
		System.out.println("Total Passed Tests: "
				+ eaFacade.getTotalNumberOfPassedTests());
		System.out.println("Total Failed Tests: "
				+ eaFacade.getTotalNumberOfNotPassedTests());

		
	}

}